package jfox.platform.organization.dao;

import java.util.List;
import jfox.platform.infrastructure.DataAccessObject;
import jfox.platform.organization.entity.Company;

/**
 * @author <a href="mailto:ren.yingb@gmail.com">Ren Yingbo</a>
 */
public interface CompanyDAO extends DataAccessObject {

    void insertCompany(Company company);

    int deleteCompany(long id);

    int updateCompany(Company company);
    
    int updateCompanyByDepartment(Company company);

    Company getCompanyById(long id);

    List<Company> getAllCompanys();
    /**
     * sheshengdian 新增 根据部门增加单位
     * @param company
     */
    void insertCompanyByDeparment(Company company);
}
